// const Mock = require('mockjs')
import Mock from 'mockjs';
var Random = Mock.Random;
const create200Response = (data) => {
  return {
    errorCode: '0',
    data,
  };
};

// 获取点位列表
Mock.mock(
  '/mock-web/integrated-workbench/v1/eventcenter/busizeventhandle/devicecombox',
  'post',
  create200Response({
    deviceOrgTree: [
      {
        nodeId: '1867497064028573696',
        nodeName: '新港街道',
        parentId: '0',
        tag: 'org',
        childrens: [
          {
            nodeId: '1867497064041156608',
            nodeName: '街道党群服务中心',
            parentId: '1867497064028573696',
            tag: 'org',
            childrens: null,
          },
          {
            nodeId: '1867783592617316354',
            nodeName: '海宁里社区',
            parentId: '1867497064028573696',
            tag: 'org',
            childrens: null,
          },
          {
            nodeId: '1889961791375675392',
            nodeName: 'IP CAMERA',
            parentId: '1867497064028573696',
            tag: 'device',
            childrens: null,
          },
          {
            nodeId: '1870028971731718147',
            nodeName: '听涛苑社区',
            parentId: '1867497064028573696',
            tag: 'org',
            childrens: null,
          },
          {
            nodeId: '1867497064041156609',
            nodeName: '综合治理中心',
            parentId: '1867497064028573696',
            tag: 'org',
            childrens: null,
          },
          {
            nodeId: '1870028971731718146',
            nodeName: '启航嘉园社区',
            parentId: '1867497064028573696',
            tag: 'org',
            childrens: null,
          },
          {
            nodeId: '1870028971727523840',
            nodeName: '新尚里社区',
            parentId: '1867497064028573696',
            tag: 'org',
            childrens: null,
          },
          {
            nodeId: '1867783592617316352',
            nodeName: '港航社区',
            parentId: '1867497064028573696',
            tag: 'org',
            childrens: null,
          },
          {
            nodeId: '1870028971719135232',
            nodeName: '三百吨社区',
            parentId: '1867497064028573696',
            tag: 'org',
            childrens: null,
          },
          {
            nodeId: '1870028971731718148',
            nodeName: '远洋心里社区',
            parentId: '1867497064028573696',
            tag: 'org',
            childrens: null,
          },
          {
            nodeId: '1867783592617316355',
            nodeName: '近开里社区',
            parentId: '1867497064028573696',
            tag: 'org',
            childrens: null,
          },
          {
            nodeId: '1867497064036962307',
            nodeName: '综合执法大队',
            parentId: '1867497064028573696',
            tag: 'org',
            childrens: null,
          },
          {
            nodeId: '1870028971731718149',
            nodeName: '垣屏苑社区',
            parentId: '1867497064028573696',
            tag: 'org',
            childrens: null,
          },
          {
            nodeId: '1867497064036962304',
            nodeName: '公共服务办公室',
            parentId: '1867497064028573696',
            tag: 'org',
            childrens: null,
          },
          {
            nodeId: '1867497064036962306',
            nodeName: '公共安全办公室',
            parentId: '1867497064028573696',
            tag: 'org',
            childrens: null,
          },
          {
            nodeId: '1870028971731718145',
            nodeName: '君景湾社区',
            parentId: '1867497064028573696',
            tag: 'org',
            childrens: null,
          },
          {
            nodeId: '1870028971731718144',
            nodeName: '海港社区',
            parentId: '1867497064028573696',
            tag: 'org',
            childrens: null,
          },
          {
            nodeId: '1867783592617316353',
            nodeName: '海防里社区',
            parentId: '1867497064028573696',
            tag: 'org',
            childrens: null,
          },
          {
            nodeId: '1870028971723329536',
            nodeName: '新开里社区',
            parentId: '1867497064028573696',
            tag: 'org',
            childrens: [
              {
                nodeId: '1866046494445015040',
                nodeName: '清雅苑西区西门车辆抓拍进口',
                parentId: '1870028971723329536',
                tag: 'device',
                childrens: null,
              },
              {
                nodeId: '1866046494436626432',
                nodeName: '清雅苑西区西门人脸抓拍进口',
                parentId: '1870028971723329536',
                tag: 'device',
                childrens: null,
              },
            ],
          },
          {
            nodeId: '1867497064036962305',
            nodeName: '公共管理办公室',
            parentId: '1867497064028573696',
            tag: 'org',
            childrens: null,
          },
          {
            nodeId: '1867783592613122050',
            nodeName: '安定里社区',
            parentId: '1867497064028573696',
            tag: 'org',
            childrens: null,
          },
        ],
      },
    ],
  })
);

// 获取社区列表
Mock.mock(
  '/mock-web/integrated-workbench/v1/eventcenter/busizeventhandle/communitycombox',
  'post',
  create200Response([
    {
      orgDd: '1',
      orgName: '近开里',
    },
    {
      orgDd: '2',
      orgName: '东疆',
    },
  ])
);
// 获取处置人员
Mock.mock(
  '/mock-web/integrated-workbench/v1/eventcenter/busizeventhandle/membercombox',
  'post',
  create200Response([
    {
      memberId: '111',
      memberName: '张三',
    },
  ])
);
// 获取事件列表
Mock.mock(
  '/mock-web/integrated-workbench/v1/eventcenter/busizeventhandle/busizeventlist',
  'post',
  create200Response({
    busizEventList: [
      {
        busizEventId: '1',
        eventCode: '1',
        address: '事件地址',
        eventName: '事件类型的中文值',
        eventClass: '事件等级的中文值',
        orgName: '所属社区的名字',
        eventStatus: '处置状态',
        eventTimeStart: '事件时间开始',
        eventTimeEnd: '事件时间结束',
        handleTime: '处置事件',
        eventSource: '事件来源',
        reporter: '上报人姓名',
      },
      {
        busizEventId: '2',
        eventCode: '2',
        address: '事件地址',
        eventName: '事件类型的中文值',
        eventClass: '事件等级的中文值',
        orgName: '所属社区的名字',
        eventStatus: '处置状态',
        eventTimeStart: '事件时间开始',
        eventTimeEnd: '事件时间结束',
        handleTime: '处置事件',
        eventSource: '事件来源',
        reporter: '上报人姓名',
      },
    ],
    total: 4900,
  })
);
// 确定分派
Mock.mock(
  '/mock-web/integrated-workbench/v1/eventcenter/busizeventdetail/confirmassign',
  'post',
  create200Response({})
);
// 确认完成
Mock.mock(
  '/mock-web/integrated-workbench/v1/eventcenter/busizEventDetail/confirmhandle',
  'post',
  create200Response({})
);
// 获取事件基本信息
Mock.mock(
  '/mock-web/integrated-workbench/v1/eventcenter/busizeventdetail',
  'post',
  create200Response({
    busizEventId: 'id',
    events: [
      {
        id: '1',
        eventCode: '',
        eventCodeDisplay: '占道经营',
        eventClass: '',
        eventClassDisplay: '紧急',
        eventSource: '',
        eventSourceDisplay: '事件来源，智能事件',
        reporterId: '上报人id',
        reporterName: '上报人名称',
        reportTime: '2025-02-21 14:00:00',
        deviceId: '点位编码（系统内部码）',
        deviceOriginId: '点位编码（原始编码）',
        deviceName: '点位名称',
        orgId: '所属社区id',
        orgName: '所属社区name',
        address: '事件地址',
      },
      {
        id: '2',
        eventCode: '',
        eventCodeDisplay: '违法摆摊',
        eventClass: '',
        eventClassDisplay: '紧急',
        eventSource: '',
        eventSourceDisplay: '事件来源，智能事件',
        reporterId: '上报人id',
        reporterName: '上报人名称',
        reportTime: 'YYYY-MM-DD HH:mm:ss',
        deviceId: '点位编码（系统内部码）',
        deviceOriginId: '点位编码（原始编码）',
        deviceName: '点位名称',
        orgId: '所属社区id',
        orgName: '所属社区name',
        address: '事件地址',
      },
    ],
    judgementUserId: '研判人id',
    judgementUserName: '研判人姓名',
    judgementResult: '研判结果',
    judgementResponsibleOrgId: '责任科室ID',
    judgementResponsibleOrgName: '责任科室名称',
    assignedUserId: '被指派人(责任人)的id',
    assignedUserName: '张三',
    assignUserId: '指派人id',
    assignUserName: '指派人姓名',
    assignTime: '分派时间',
    handlerPic:
      'https://img0.baidu.com/it/u=3217812679,2585737758&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
    handlerRemark: '处置详情,原型图中的驱离记录',
    handlerTime: '处置时间',
    handlerTimes: '处置次数',
    eventStatus: '已处置', //待研判,待分派,待处置,已处置,已复核
    eventTime: '上报时间',
  })
);
// waittodo 登录
Mock.mock(
  '/mock-web/integrated-workbench/v1/eventcenter/authentication/login',
  'post',
  create200Response({
    message: '登录成功|登录失败',
    resultCode: '0|1',
    username: 'admin',
    password: '111111',
    role: 'leader', // 'staff' leader
    userId: '',
    memberId: '',
    memberName: '',
    orgs: [
      {
        orgId: '',
        orgName: '',
        orgTypeCode: '',
      },
    ],
  })
);
// 获取视频流
Mock.mock(
  '/mock-web/integrated-workbench/v1/eventcenter/busizEventDetail/playRuntimeCameraUrl',
  'post',
  create200Response({})
);
// 获取最新事件
Mock.mock(
  '/mock-web/integrated-workbench//v1/enforcement/list',
  'post',
  create200Response({
    busizEventList: [
      {
        busizEventId: '124',
        eventCode: '1001-200001',
        eventName: '车辆抓拍',
        eventTime: '2025-02-20T12:15:11.000+08:00',
        address: '安定里社区',
        eventClass: '紧急',
        eventSource: '智能事件',
        eventStatusCode: '0',
        eventStatus: '未派发',
      },
    ],
  })
);
// 数据总览-综合执法
Mock.mock(
  '/mock-web/integrated-workbench/v1/eventcenter/workstation/statistics',
  'post',
  create200Response({
    eventCnt: '212',
    handleCnt: '115',
    recurrenceCnt: '22',
    handleRate: '70%',
    recurrenceCntRate: '20%',
    eventTypeCntList: [
      {
        eventType: '占道经营',
        count: 33,
      },
      {
        eventType: '车辆违停',
        count: 33,
      },
    ],
    trendList: [
      {
        date: '11-22',
        count: 33,
      },
      {
        date: '11-23',
        count: 25,
      },
    ],
  })
);

// 数据总览-公共安全
Mock.mock(
  '/mock-web/integrated-workbench/v1/publicsafety/workstation/statistics',
  'post',
  create200Response({
    eventCnt: '212',
    handleCnt: '115',
    recurrenceCnt: '22',
    handleRate: '70%',
    recurrenceCntRate: '20%',
    eventTypeCntList: [
      {
        eventType: '占道经营',
        count: 33,
      },
      {
        eventType: '车辆违停',
        count: 33,
      },
    ],
    trendList: [
      {
        date: '11-22',
        count: 33,
      },
      {
        date: '11-23',
        count: 25,
      },
    ],
  })
);

// 档案中心： 安全生产报表top5
Mock.mock(
  '/mock-web/data-center/safearchives/report/summarize',
  'post',
  create200Response([
    {
      dataItem: '企业总数',
      count: 913,
      unitName: '家',
    },
    {
      dataItem: '企业预警',
      count: 113,
      unitName: '家',
    },
    {
      dataItem: '待整改隐患',
      count: 914,
      unitName: '项',
    },
    {
      dataItem: '累计发现隐患',
      count: 9141,
      unitName: '项',
    },
    {
      dataItem: '累计查询次数',
      count: 1314,
      unitName: '次',
    },
  ])
);

// 档案中心： 数据变化
Mock.mock(
  '/mock-web/data-center/safearchives/report/inspectissuesbar',
  'post',
  create200Response([
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '1月',
    },
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '2月',
    },
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '3月',
    },
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '4月',
    },
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '5月',
    },
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '6月',
    },
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '7月',
    },
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '8月',
    },
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '9月',
    },
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '10月',
    },
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '11月',
    },
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '12月',
    },
  ])
);
// 公共安全： 隐患排查记录
Mock.mock(
  '/mock-web/integrated-workbench/v1/publicsafety/workstation/inspectissuesbar',
  'post',
  create200Response([
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '1月',
    },
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '2月',
    },
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '3月',
    },
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '4月',
    },
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '5月',
    },
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '6月',
    },
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '7月',
    },
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '8月',
    },
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '9月',
    },
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '10月',
    },
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '11月',
    },
    {
      inspectionTimes: 3,
      issueCount: 1,
      rectificationCount: 1,
      inspectionMon: '12月',
    },
  ])
);

// 档案中心： 安全检查日历
Mock.mock(
  '/mock-web/data-center/safearchives/report/inspectissuescalendar',
  'post',
  create200Response([
    {
      inspectionDate: '2025-02-01',
      inspectionYList: '',
      inspectionNList: '机械公司',
      recheckList: '',
    },
    {
      inspectionDate: '2025-02-04',
      inspectionYList: '五金公司,建筑公司',
      inspectionNList: '',
      recheckList: '',
    },
    {
      inspectionDate: '2025-02-11',
      inspectionYList: '',
      inspectionNList: '',
      recheckList: '五金公司,机械公司',
    },
  ])
);

// 档案中心： 企业分析
Mock.mock(
  '/mock-web/integrated-workbench/v1/safearchives/report/enterpriseanalysis',
  'post',
  create200Response({
    tagStat: [
      {
        tagLabel: '金属熔融',
        count: 33,
      },
      {
        tagLabel: '涉危企业',
        count: 33,
      },
      {
        tagLabel: '高危仓储',
        count: 33,
      },
      {
        tagLabel: '涉爆粉尘',
        count: 33,
      },
      {
        tagLabel: '有宿舍',
        count: 33,
      },
      {
        tagLabel: '涉毒气体',
        count: 33,
      },
    ],
    industryCategoryStat: [
      {
        icName: '机械',
        count: 340,
      },
      {
        icName: '轻工',
        count: 340,
      },
      {
        icName: '纺织',
        count: 340,
      },
      {
        icName: '化工',
        count: 340,
      },
      {
        icName: '其他',
        count: 340,
      },
    ],
  })
);

// 公共安全： 企业分析
Mock.mock(
  '/mock-web/integrated-workbench/v1/publicsafety/workstation/enterpriseanalysis',
  'post',
  create200Response({
    tagStat: [
      {
        tagLabel: '金属熔融',
        count: 33,
      },
      {
        tagLabel: '涉危企业',
        count: 33,
      },
      {
        tagLabel: '高危仓储',
        count: 33,
      },
      {
        tagLabel: '涉爆粉尘',
        count: 33,
      },
      {
        tagLabel: '有宿舍',
        count: 33,
      },
      {
        tagLabel: '涉毒气体',
        count: 33,
      },
    ],
    industryCategoryStat: [
      {
        icName: '机械',
        count: 340,
      },
      {
        icName: '轻工',
        count: 340,
      },
      {
        icName: '纺织',
        count: 340,
      },
      {
        icName: '化工',
        count: 340,
      },
      {
        icName: '其他',
        count: 340,
      },
    ],
  })
);

// 档案中心： 复查列表
Mock.mock(
  '/mock-web/data-center/safearchives/report/inspectlists',
  'post',
  create200Response({
    latestInspectList: [
      {
        dateLable: '3-11',
        enterpriseNameCn: 'XXXX机械制造有限公司',
        issuesCount: 0,
      },
      {
        dateLable: '3-11',
        enterpriseNameCn: 'XXXX汽车零件有限公司',
        issuesCount: 3,
      },
      {
        dateLable: '3-11',
        enterpriseNameCn: 'XXXX化工有限公司',
        issuesCount: 18,
      },
      {
        dateLable: '3-4',
        enterpriseNameCn: 'XXXX五金工具有限公司',
        issuesCount: 1,
      },
    ],
    nearRecheckList: [
      {
        dateLable: '3-11',
        enterpriseNameCn: 'XXXX机械制造有限公司',
        daysRemain: 1,
      },
      {
        dateLable: '3-10',
        enterpriseNameCn: 'XXXX汽车零件有限公司',
        daysRemain: -8,
      },
      {
        dateLable: '3-9',
        enterpriseNameCn: 'XXXX化工有限公司',
        daysRemain: -9,
      },
      {
        dateLable: '3-4',
        enterpriseNameCn: 'XXXX五金工具有限公司',
        daysRemain: -12,
      },
    ],
  })
);

// 档案中心： 行业类别
Mock.mock(
  '/mock-web//integrated-workbench/v1/data-center/param/industrycategory',
  'post',
  create200Response([
    {
      icParentId: '1887349310832644096',
      icParentName: '制造业',
      ics: [
        {
          icId: '1887409264855748608',
          icName: '化工',
        },
        {
          icId: '1887409264859942912',
          icName: '机械',
        },
        {
          icId: '1887409264864137216',
          icName: '汽车',
        },
      ],
    },
    {
      icParentId: '1887349310832644097',
      icParentName: '信息技术',
      ics: [
        {
          icId: '1887409264876720129',
          icName: '电子信息',
        },
        {
          icId: '1887409264876720130',
          icName: '软件开发',
        },
        {
          icId: '1887409264880914433',
          icName: '人工智能',
        },
      ],
    },
  ])
);

// 企业档案列表
Mock.mock(
  '/mock-web/data-center/safearchives/enterprise/qrylist',
  'post',
  create200Response({
    objectList: [
      {
        id: '1887349310832644096',
        enterpriseNameCn: '企业名称',
        registrationNumber: '信用代码',
        safetyDirector: '安管负责人',
        contactNumber: '联系电话',
        industryCategory: '行业类别',
        registeredAddress: '地址',
      },
      {
        id: '1887349310832644096',
        enterpriseNameCn: '企业名称',
        registrationNumber: '信用代码',
        safetyDirector: '安管负责人',
        contactNumber: '联系电话',
        industryCategory: '行业类别',
        registeredAddress: '地址',
      },
    ],
  })
);

// 企业档案:详情
Mock.mock(
  '/mock-web/data-center/safearchives/enterprise/qrydetail',
  'post',
  create200Response({
    id: '1887349310832644096',
    enterpriseNameCn: '企业名称',
    registrationNumber: '信用代码',
    status: '经营状态',
    establishmentDate: '2024-01-23',
    staffCount: '企业人数',
    industryCategory: '行业类别代码',
    aboveScale: '规上企业',
    remark: '备注',
    legalRepresentative: '法人',
    safetyDirector: '安管负责人',
    contactNumber: '联系电话',
    registeredAddress: '执照地址',
    actualAddress: '实际地址',
    picFiles: [],
  })
);

// 企业档案:新增或编辑
Mock.mock(
  '/mock-web/data-center/safearchives/enterprise/edit',
  'post',
  create200Response({
    result: 'success',
  })
);

// 企业档案:通用字典
Mock.mock(
  '/mock-web/integrated-workbench/v1/safearchives/param/paramkvlist',
  'post',
  create200Response([
    {
      key: '0',
      value: '开业',
    },
    {
      key: '1',
      value: '停业',
    },
  ])
);

// 企业档案:安全检查记录
Mock.mock(
  '/mock-web/data-center/safearchives/enterprise/qryinspectlists',
  'post',
  create200Response({
    objectList: [
      {
        id: '1887349310832644096',
        enterpriseNameCn: '企业名称',
        inspectionType: '日常检查',
        inspectionDate: '检查日期',
        status: '状态',
        issuesCount: '隐患问题数量',
        inspector: '检查人员',
        inspectCompany: '检查公司',
      },
      {
        id: '1887349310832644096',
        enterpriseNameCn: '企业名称',
        inspectionType: '日常检查',
        inspectionDate: '检查日期',
        status: '状态',
        issuesCount: '隐患问题数量',
        inspector: '检查人员',
        inspectCompany: '检查公司',
      },
    ],
  })
);

// waittodo:商户列表
Mock.mock(
  '/mock-web/data-center/safearchives/merchant/qrylist',
  'post',
  create200Response({
    objectList: [
      {
        id: '1887349310832644096',
        enterpriseNameCn: '商户名称',
        safetyDirector: '负责人',
        contactNumber: '联系电话',
        industryCategory: '商户类别',
        registeredAddress: '地址',
      },
      {
        id: '1887349310832644096',
        enterpriseNameCn: '商户名称',
        safetyDirector: '负责人',
        contactNumber: '联系电话',
        industryCategory: '商户类别',
        registeredAddress: '地址',
      },
    ],
  })
);
// waittodo:商户详情
Mock.mock(
  '/mock-web/data-center/safearchives/merchant/qrydetail',
  'post',
  create200Response({
    id: '1887349310832644096',
    enterpriseNameCn: '商户名称',
    registrationNumber: '信用代码',
    status: '经营状态',
    establishmentDate: '2022-11-22',
    industryCategory: '商户类别代码',
    remark: '备注',
    legalRepresentative: '负责人',
    safetyDirector: '负责人',
    contactNumber: '联系电话',
    registeredAddress: '执照地址',
    actualAddress: '实际地址',
    picFiles: [],
  })
);
// waittodo
Mock.mock(
  '/mock-web/data-center/safearchives/inspect/report',
  'post',
  create200Response({
    inspectionReports: [
      {
        fileName: '文件名',
        fileType: '文件类型-决定图标',
        uploadCompany: '上传公司',
        uploadTime: '上传日期',
        viewUrl: '预览文件地址',
        fileUrl: '文件下载地址',
      },
      {
        fileName: '文件名',
        fileType: '文件类型-决定图标',
        uploadCompany: '上传公司',
        uploadTime: '上传日期',
        viewUrl: '预览文件地址',
        fileUrl: '文件下载地址',
      },
    ],
    total: 4900,
    message: '操作成功',
  })
);
// waittodo
Mock.mock(
  '/mock-web/data-center/safearchives/inspection/qrydetail',
  'post',
  create200Response({
    inspectionReports: [
      {
        fileName: '文件名',
        fileType: '文件类型-决定图标',
        uploadCompany: '上传公司',
        uploadTime: '上传日期',
        viewUrl: '预览文件地址',
        fileUrl: '文件下载地址',
      },
      {
        fileName: '文件名',
        fileType: '文件类型-决定图标',
        uploadCompany: '上传公司',
        uploadTime: '上传日期',
        viewUrl: '预览文件地址',
        fileUrl: '文件下载地址',
      },
    ],
    inspectionIssues: [
      {
        id: '主键',
        issueDesc: '隐患问题',
        rectificationRequire: '整改要求',
        status: '状态', //已整改 or 未整改
        issuePhoto: '隐患照片',
        recheckPhoto: '复查照片',
      },
      {
        id: '主键',
        issueDesc: '隐患问题',
        rectificationRequire: '整改要求',
        status: '状态', //已整改 or 未整改
        issuePhoto: '隐患照片',
        recheckPhoto: '复查照片',
      },
      {
        id: '主键',
        issueDesc: '隐患问题',
        rectificationRequire: '整改要求',
        status: '状态', //已整改 or 未整改
        issuePhoto: '隐患照片',
        recheckPhoto: '复查照片',
      },
    ],
  })
);
// waittodo :指挥中心和事件类型的统计图
Mock.mock(
  '/mock-web/integrated-workbench/v1/streetalertplatform/event/eventflow/judge/homepage/analysisdata',
  'post',
  create200Response({
    eventCnt: 913,
    importantCnt: 113,
    todoCnt: 78,
    judgedCnt: 78,
    eventTypeAnalysis: [
      {
        eventType: '10',
        eventTypeDesc: '城管',
        cnt: 3,
        percent: 18,
      },
      {
        eventType: '20',
        eventTypeDesc: '环保',
        cnt: 3,
        percent: 18,
      },
      {
        eventType: '30',
        eventTypeDesc: '安全',
        cnt: 3,
        percent: 18,
      },
      {
        eventType: '40',
        eventTypeDesc: '社区',
        cnt: 3,
        percent: 18,
      },
    ],
    eventClassAnalysis: [
      {
        eventClass: '101',
        eventClassDesc: '一般',
        cnt: 3,
        percent: 18,
      },
      {
        eventClass: '201',
        eventClassDesc: '紧急',
        cnt: 3,
        percent: 18,
      },
      {
        eventClass: '301',
        eventClassDesc: '特别紧急',
        cnt: 3,
        percent: 18,
      },
    ],
    eventJudgeAnalysis: [
      {
        judgeResult: '1',
        judgeResultDesc: '正报',
        cnt: 3,
        percent: 18,
      },
      {
        judgeResult: '2',
        judgeResultDesc: '误报',
        cnt: 3,
        percent: 18,
      },
    ],
  })
);
// waittodo :待研判事件
Mock.mock(
  '/mock-web/integrated-workbench/v1/streetalertplatform/event/eventflow/judge/homepage/needjudgelist',
  'post',
  create200Response({
    reportList: [
      {
        id: '1902910218426257408',
        address: '海滨路滨中道交口',
        eventCodeDesc: '店外经营',
        eventClassDesc: '一般',
        orgIdDesc: null,
        reportTime: '2025-03-21 10:27:36',
        eventPic:
          'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174252269431374194331?pic*363619162*1637427*863*AC01F06B0980F50E45D3-2*1742523515',
      },
      {
        id: '1902909837138857984',
        address: '海滨路滨中道交口',
        eventCodeDesc: '店外经营',
        eventClassDesc: '一般',
        orgIdDesc: null,
        reportTime: '2025-03-21 10:27:14',
        eventPic:
          'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174252269431374194331?pic*363619162*1637427*863*AC01F06B0980F50E45D3-2*1742523515',
      },
      {
        id: '1902909316843835392',
        address: '海安路滨中道交口',
        eventCodeDesc: '非法摆摊',
        eventClassDesc: '一般',
        orgIdDesc: null,
        reportTime: '2025-03-21 10:25:10',
        eventPic:
          'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174252269431374194331?pic*309616591*1226736*734*AC01F06B0980F50E45D3-2*1742523391',
      },
      {
        id: '1902901716932759552',
        address: '海滨路滨中道交口',
        eventCodeDesc: '占道经营',
        eventClassDesc: '一般',
        orgIdDesc: null,
        reportTime: '2025-03-21 09:54:58',
        eventPic:
          'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174251810684256794325?pic*1592220586*1554974*3730*AC01F06B0980F50E45D3-2*1742521579',
      },
      {
        id: '1902900358489968640',
        address: '海滨路滨中道交口',
        eventCodeDesc: '非法摆摊',
        eventClassDesc: '一般',
        orgIdDesc: null,
        reportTime: '2025-03-21 09:49:34',
        eventPic:
          'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174251810684256794325?pic*1420889897*1747974*3335*AC01F06B0980F50E45D3-2*1742521256',
      },
      {
        id: '1902894058343370752',
        address: '海滨路滨中道交口',
        eventCodeDesc: '店外经营',
        eventClassDesc: '一般',
        orgIdDesc: null,
        reportTime: '2025-03-21 09:24:32',
        eventPic:
          'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174251810684256794325?pic*501806296*1783800*1132*AC01F06B0980F50E45D3-2*1742519753',
      },
      {
        id: '1902891676360380416',
        address: '海安里12栋',
        eventCodeDesc: '打包垃圾',
        eventClassDesc: '一般',
        orgIdDesc: null,
        reportTime: '2025-03-21 09:15:04',
        eventPic:
          'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174251810684256794325?pic*247798527*1867739*552*AC01F06B0980F50E45D3-2*1742519186',
      },
      {
        id: '1902887287235153920',
        address: '海安路滨中道交口',
        eventCodeDesc: '非法摆摊',
        eventClassDesc: '一般',
        orgIdDesc: null,
        reportTime: '2025-03-21 08:57:38',
        eventPic:
          'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174251810684256794325?pic*9977189*1142864*21*AC01F06B0980F50E45D3-2*1742518139',
      },
      {
        id: '1902886352693891072',
        address: '海宇道临开西路左',
        eventCodeDesc: '乱堆物堆料',
        eventClassDesc: '一般',
        orgIdDesc: '新港街道',
        reportTime: '2025-03-21 08:53:55',
        eventPic:
          'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174251346941771494317?pic*2105835525*1864602*4645*AC01F06B0980F50E45D3-2*1742517916',
      },
      {
        id: '1902885062173659136',
        address: '和睦里4栋东北角',
        eventCodeDesc: '乱堆物堆料',
        eventClassDesc: '一般',
        orgIdDesc: '和睦里',
        reportTime: '2025-03-21 08:48:47',
        eventPic:
          'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174251346941771494317?pic*1979236417*608224*4358*AC01F06B0980F50E45D3-2*1742517609',
      },
    ],
    total: 41234,
  })
);
// waittodo 指挥中心-研判列表
Mock.mock(
  '/mock-web/integrated-workbench/v1/streetalertplatform/event/eventflow/judge/needjudgelist',
  'post',
  create200Response({
    reportList: [
      {
        id: '1902910218426257408',
        address: '海滨路滨中道交口',
        eventCodeDesc: '店外经营',
        eventClassDesc: '一般',
        orgIdDesc: null,
        reportTime: '2025-03-21 10:27:36',
        eventPic:
          'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174252269431374194331?pic*363619162*1637427*863*AC01F06B0980F50E45D3-2*1742523515',
      },
      {
        id: '1902909837138857984',
        address: '海滨路滨中道交口',
        eventCodeDesc: '店外经营',
        eventClassDesc: '一般',
        orgIdDesc: null,
        reportTime: '2025-03-21 10:27:14',
        eventPic:
          'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174252269431374194331?pic*363619162*1637427*863*AC01F06B0980F50E45D3-2*1742523515',
      },
      {
        id: '1902909316843835392',
        address: '海安路滨中道交口',
        eventCodeDesc: '非法摆摊',
        eventClassDesc: '一般',
        orgIdDesc: null,
        reportTime: '2025-03-21 10:25:10',
        eventPic:
          'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174252269431374194331?pic*309616591*1226736*734*AC01F06B0980F50E45D3-2*1742523391',
      },
      {
        id: '1902901716932759552',
        address: '海滨路滨中道交口',
        eventCodeDesc: '占道经营',
        eventClassDesc: '一般',
        orgIdDesc: null,
        reportTime: '2025-03-21 09:54:58',
        eventPic:
          'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174251810684256794325?pic*1592220586*1554974*3730*AC01F06B0980F50E45D3-2*1742521579',
      },
      {
        id: '1902900358489968640',
        address: '海滨路滨中道交口',
        eventCodeDesc: '非法摆摊',
        eventClassDesc: '一般',
        orgIdDesc: null,
        reportTime: '2025-03-21 09:49:34',
        eventPic:
          'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174251810684256794325?pic*1420889897*1747974*3335*AC01F06B0980F50E45D3-2*1742521256',
      },
      {
        id: '1902894058343370752',
        address: '海滨路滨中道交口',
        eventCodeDesc: '店外经营',
        eventClassDesc: '一般',
        orgIdDesc: null,
        reportTime: '2025-03-21 09:24:32',
        eventPic:
          'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174251810684256794325?pic*501806296*1783800*1132*AC01F06B0980F50E45D3-2*1742519753',
      },
      {
        id: '1902891676360380416',
        address: '海安里12栋',
        eventCodeDesc: '打包垃圾',
        eventClassDesc: '一般',
        orgIdDesc: null,
        reportTime: '2025-03-21 09:15:04',
        eventPic:
          'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174251810684256794325?pic*247798527*1867739*552*AC01F06B0980F50E45D3-2*1742519186',
      },
      {
        id: '1902887287235153920',
        address: '海安路滨中道交口',
        eventCodeDesc: '非法摆摊',
        eventClassDesc: '一般',
        orgIdDesc: null,
        reportTime: '2025-03-21 08:57:38',
        eventPic:
          'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174251810684256794325?pic*9977189*1142864*21*AC01F06B0980F50E45D3-2*1742518139',
      },
      {
        id: '1902886352693891072',
        address: '海宇道临开西路左',
        eventCodeDesc: '乱堆物堆料',
        eventClassDesc: '一般',
        orgIdDesc: '新港街道',
        reportTime: '2025-03-21 08:53:55',
        eventPic:
          'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174251346941771494317?pic*2105835525*1864602*4645*AC01F06B0980F50E45D3-2*1742517916',
      },
      {
        id: '1902885062173659136',
        address: '和睦里4栋东北角',
        eventCodeDesc: '乱堆物堆料',
        eventClassDesc: '一般',
        orgIdDesc: '和睦里',
        reportTime: '2025-03-21 08:48:47',
        eventPic:
          'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174251346941771494317?pic*1979236417*608224*4358*AC01F06B0980F50E45D3-2*1742517609',
      },
    ],
    total: 41234,
  })
);
// waittodo 指挥中心-研判详情
Mock.mock(
  '/mock-web/integrated-workbench/v1/streetalertplatform/event/eventflow/judge/eventdetail',
  'post',
  create200Response({
    id: '1902910498605764608',
    eventCode: '1001-300002',
    eventCodeDesc: '店外经营',
    reportTime: '2025-03-21 10:29:52',
    address: '海安路滨中道交口',
    eventClass: '101',
    eventClassDesc: '一般',
    maintainOrgName: null,
    deviceId: '1889981491715379224',
    cameraIndexCode: '4c08b6a80268416cb51d35664d70470b',
    pic: 'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174252269431374194331?pic*443996961*1172954*1054*AC01F06B0980F50E45D3-2*1742523673',
    alarmPeriod: '60',
    ifgenerateBeforedeal: '0',
    confidence: '20',
    similarity: '80',
    status: 0, // 0待 其他
  })
);
// waittodo 指挥中心-提交研判结果
Mock.mock(
  '/mock-web/integrated-workbench/v1/streetalertplatform/event/eventflow/judge/judgesubmit',
  'post',
  create200Response({
    id: '1902910498605764608',
    eventCode: '1001-300002',
    eventCodeDesc: '店外经营',
    reportTime: '2025-03-21 10:29:52',
    address: '海安路滨中道交口',
    eventClass: '101',
    eventClassDesc: '一般',
    maintainOrgName: null,
    deviceId: '1889981491715379224',
    cameraIndexCode: '4c08b6a80268416cb51d35664d70470b',
    pic: 'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174252269431374194331?pic*443996961*1172954*1054*AC01F06B0980F50E45D3-2*1742523673',
    alarmPeriod: '60',
    ifgenerateBeforedeal: '0',
    confidence: '20',
    similarity: '80',
    status: 1, // 0待 其他
  })
);
// waittodo 综合执法-事件类型
Mock.mock(
  '/mock-web/integrated-workbench/v1/enforcement/eventdefinecombox',
  'post',
  create200Response([
    {
      eventDefineDisplay: '人脸抓拍',
      eventDefine: '1001-100001',
    },
    {
      eventDefineDisplay: '车辆抓拍',
      eventDefine: '1001-200001',
    },
    {
      eventDefineDisplay: '店外经营',
      eventDefine: '1001-300002',
    },
    {
      eventDefineDisplay: '垃圾箱满溢',
      eventDefine: '1001-300004',
    },
    {
      eventDefineDisplay: '非机动车乱停放',
      eventDefine: '1001-300008',
    },
    {
      eventDefineDisplay: '占道经营',
      eventDefine: '1001-300001',
    },
    {
      eventDefineDisplay: '打包垃圾',
      eventDefine: '1001-300007',
    },
    {
      eventDefineDisplay: '暴露垃圾',
      eventDefine: '1001-300005',
    },
    {
      eventDefineDisplay: '非法摆摊',
      eventDefine: '1001-300003',
    },
    {
      eventDefineDisplay: '乱堆物堆料',
      eventDefine: '1001-300006',
    },
  ])
);
// waittodo 综合执法-事件状态
Mock.mock(
  '/mock-web/integrated-workbench/v1/enforcement/eventstatuscombox',
  'post',
  create200Response([
    {
      eventStatusDisplay: '未派发',
      eventStatus: '0',
    },
    {
      eventStatusDisplay: '已派发',
      eventStatus: '10',
    },
    {
      eventStatusDisplay: '已处理',
      eventStatus: '99',
    },
    {
      eventStatusDisplay: '已复核',
      eventStatus: '101',
    },
  ])
);
// waittodo 综合执法-事件等级
Mock.mock(
  '/mock-web/integrated-workbench/v1/enforcement/eventclasscombox',
  'post',
  create200Response([
    {
      eventClassDisplay: '重点',
      eventClass: '201',
    },
    {
      eventClassDisplay: '紧急',
      eventClass: '301',
    },
    {
      eventClassDisplay: '普通',
      eventClass: '101',
    },
  ])
);
// waittodo 综合执法-事件来源
Mock.mock(
  '/mock-web/integrated-workbench/v1/enforcement/eventsourcecombox',
  'post',
  create200Response([
    {
      eventSourceDisplay: '智能事件',
      eventSource: '200',
    },
    {
      eventSourceDisplay: '人工上报',
      eventSource: '100',
    },
    {
      eventSourceDisplay: '巡查上报',
      eventSource: '110',
    },
  ])
);
// waittodo  首页导航菜单
Mock.mock(
  '/mock-web/integrated-workbench/v1/system/getrolemenus',
  'post',
  create200Response({
    menuList: [
      {
        id: 1,
        menuId: 1,
        name: '总览',
        path: '/',
        children: [
          {
            name: '综合执法工作台',
            path: '/zhzfgzt',
            icon: 'HomeFilled',
            meta: {
              hidden: false,
              title: '工作台',
            },
          },
          {
            name: '指挥中心工作台',
            path: '/zhzxgzt',
            icon: 'HomeFilled',
            meta: {
              hidden: false,
              title: '工作台',
            },
          },
          {
            name: '公共管理工作台',
            path: '/ggglgzt',
            icon: 'HomeFilled',
            meta: {
              hidden: false,
              title: '工作台',
            },
          },
          {
            name: '公共安全工作台',
            path: '/ggaqgzt',
            icon: 'HomeFilled',
            meta: {
              hidden: false,
              title: '工作台',
            },
          },
          {
            name: '场景视频轮询',
            path: '/videoplayloop',
            icon: 'HomeFilled',
            meta: {
              hidden: false,
              title: '场景视频轮询',
            },
          },
          {
            name: '治理场景',
            path: '/zlcj',
            icon: 'Grid',
            meta: {
              hidden: false,
              title: '治理场景',
            },
            children: [
              {
                name: '内涝防汛',
                path: '/zlcj/nlfx',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
              {
                name: '安全防火',
                path: '/zlcj/aqfh',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
              {
                name: '潮位监控',
                path: '/zlcj/cwjk',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
              {
                name: '垃圾倾倒',
                path: '/zlcj/lj',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
              {
                name: '气象站',
                path: '/zlcj/qxz',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
              {
                name: '水环境',
                path: '/zlcj/shhj',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
              {
                name: '噪音',
                path: '/zlcj/zy',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
              {
                name: '城管',
                path: '/zlcj/cgz',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
            ],
          },
          {
            name: '事件中心',
            path: '/eventlist',
            icon: 'Grid',
            meta: {
              hidden: false,
              title: '事件中心',
            },
            children: [
              {
                name: '待研判列表',
                path: '/yplb',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
              {
                name: '事件列表',
                path: '/eventlist',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
              {
                name: '事件处置',
                path: '/eventhandling',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
            ],
          },
          {
            name: '档案中心',
            path: '/enterprise',
            icon: 'Grid',
            meta: {
              hidden: false,
              title: '',
            },
            children: [
              {
                name: '企业档案',
                path: '/enterprise',
                icon: '',
              },
              {
                name: '商户档案',
                path: '/merchant',
                icon: '',
              },
              {
                name: '安全生产报表',
                path: '/reportform',
                icon: '',
              },
              {
                name: '安全检查报告档案',
                path: '/securitycheck',
                icon: '',
              },
              {
                name: '安全生产隐患记录',
                path: '/potentialSafe',
                icon: '',
              },
            ],
          },
        ],
      },
      {
        id: 1904071204281651200,
        menuId: 1904018483641978880,
        name: '街道领导',
        menuCode: '1904018483641978880',
        parentId: 0,
        controllerId: null,
        path: '/',
        nodeType: 1,
        sort: 1,
        level: 1,

        icon: 'Grid',
        children: [
          {
            name: '事件中心',
            path: '/eventlist',
            icon: 'Grid',
            meta: {
              hidden: false,
              title: '事件中心',
            },
            children: [
              {
                name: '待研判列表',
                path: '/yplb',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
              {
                name: '事件列表',
                path: '/eventlist',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
              {
                name: '事件处置',
                path: '/eventhandling',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
            ],
          },
        ],
      },
      {
        id: 1231221212,
        menuId: 19040121218483650367489,
        name: '综合执法',
        menuCode: '1904018483650367489',
        parentId: 0,
        controllerId: null,
        path: '/',
        nodeType: 1,
        sort: 3,
        level: 1,

        icon: 'Grid',
        children: [
          {
            name: '综合执法工作台',
            path: '/zhzfgzt',
            icon: 'HomeFilled',
            meta: {
              hidden: false,
              title: '工作台',
            },
          },
          {
            name: '治理场景',
            path: '/zlcj',
            icon: 'Grid',
            meta: {
              hidden: false,
              title: '治理场景',
            },
            children: [
              {
                name: '噪音',
                path: '/zlcj/zy',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
              {
                name: '城管',
                path: '/zlcj/cgz',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
            ],
          },
          {
            name: '事件中心',
            path: '/eventlist',
            icon: 'Grid',
            meta: {
              hidden: false,
              title: '事件中心',
            },
            children: [
              // {
              //   name: '待研判列表',
              //   path: '/yplb',
              //   icon: '',
              //   meta: {
              //     hidden: false,
              //     title: '',
              //   },
              // },
              // {
              //   name: '事件列表',
              //   path: '/eventlist',
              //   icon: '',
              //   meta: {
              //     hidden: false,
              //     title: '',
              //   },
              // },
              // 待处置列表
              {
                name: '处置列表',
                path: '/eventhandling',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
              // 待分配列表
              {
                name: '事件分派',
                path: '/fplist',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
            ],
          },
        ],
      },
      {
        id: 453,
        menuId: 1904018483650367489,
        name: '公共安全',
        menuCode: '1904018483650367489',
        parentId: 0,
        controllerId: null,
        path: '/',
        nodeType: 1,
        sort: 3,
        level: 1,

        icon: 'Grid',
        children: [
          {
            name: '公共安全工作台',
            path: '/ggaqgzt',
            icon: 'HomeFilled',
            meta: {
              hidden: false,
              title: '工作台',
            },
          },
          {
            name: '治理场景',
            path: '/zlcj',
            icon: 'Grid',
            meta: {
              hidden: false,
              title: '治理场景',
            },
            children: [
              {
                name: '内涝防汛',
                path: '/zlcj/nlfx',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
              {
                name: '安全防火',
                path: '/zlcj/aqfh',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
              {
                name: '潮位监控',
                path: '/zlcj/cwjk',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
            ],
          },
          {
            name: '事件中心',
            path: '/eventlist',
            icon: 'Grid',
            meta: {
              hidden: false,
              title: '事件中心',
            },
            children: [
              // {
              //   name: '待研判列表',
              //   path: '/yplb',
              //   icon: '',
              //   meta: {
              //     hidden: false,
              //     title: '',
              //   },
              // },
              // {
              //   name: '事件列表',
              //   path: '/eventlist',
              //   icon: '',
              //   meta: {
              //     hidden: false,
              //     title: '',
              //   },
              // },
              // 待处置列表
              {
                name: '事件处置',
                path: '/eventhandling',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
            ],
          },
        ],
      },
      {
        id: 12322123,
        menuId: 1904018483650367489,
        name: '公共管理',
        menuCode: '1904018483650367489',
        parentId: 0,
        controllerId: null,
        path: '/',
        nodeType: 1,
        sort: 3,
        level: 1,

        icon: 'Grid',
        children: [
          {
            name: '公共管理工作台',
            path: '/ggglgzt',
            icon: 'HomeFilled',
            meta: {
              hidden: false,
              title: '工作台',
            },
          },
          {
            name: '治理场景',
            path: '/zlcj',
            icon: 'Grid',
            meta: {
              hidden: false,
              title: '治理场景',
            },
            children: [
              {
                name: '垃圾倾倒',
                path: '/zlcj/lj',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
              {
                name: '气象站',
                path: '/zlcj/qxz',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
              {
                name: '水环境',
                path: '/zlcj/shhj',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
            ],
          },
          {
            name: '事件中心',
            path: '/eventlist',
            icon: 'Grid',
            meta: {
              hidden: false,
              title: '事件中心',
            },
            children: [
              {
                name: '待研判列表',
                path: '/yplb',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
              {
                name: '事件列表',
                path: '/eventlist',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
              {
                name: '事件处置',
                path: '/eventhandling',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
            ],
          },
        ],
      },
      {
        id: 433,
        menuId: 1904018483650367489,
        name: '指挥中心',
        menuCode: '1904018483650367489',
        parentId: 0,
        controllerId: null,
        path: '/',
        nodeType: 1,
        sort: 3,
        level: 1,

        icon: 'Grid',
        children: [
          {
            id: 121,
            menuId: 122212,
            name: '工作台',
            menuCode: '2121',
            parentId: 12212,
            controllerId: null,
            path: '/zhzxgzt',
            nodeType: 1,
            sort: 15,
            level: 2,

            icon: 'Grid',
            children: null,
          },
          {
            id: 121,
            menuId: 122212,
            name: '事件中心',
            menuCode: '2121',
            parentId: 12212,
            controllerId: null,
            path: '/eventlist',
            nodeType: 1,
            sort: 15,
            level: 2,

            icon: 'Grid',
            children: [
              {
                name: '事件列表',
                path: '/eventlist',
              },
              // {
              //   name: '事件处置',
              //   path: '/eventhandling',
              // },
              {
                name: '研判列表',
                path: '/yplb',
                icon: '',
                meta: {
                  hidden: false,
                  title: '',
                },
              },
            ],
          },
        ],
      },
      {
        id: 33,
        menuId: 1904018483650367489,
        name: '社区',
        menuCode: '1904018483650367489',
        parentId: 0,
        controllerId: null,
        path: '/',
        nodeType: 1,
        sort: 3,
        level: 1,

        icon: 'Grid',
        children: [],
      },
      {
        id: 19040712204290039809,
        menuId: 1904018483650367489,
        name: '物业',
        menuCode: '1904018483650367489',
        parentId: 0,
        controllerId: null,
        path: '/',
        nodeType: 1,
        sort: 3,
        level: 1,

        icon: 'Grid',
        children: [],
      },
      {
        id: 190411071204290039809,
        menuId: 1904018483650367489,
        name: '通用',
        menuCode: '1904018483650367489',
        parentId: 0,
        controllerId: null,
        path: '/',
        nodeType: 1,
        sort: 3,
        level: 1,

        icon: 'Grid',
        children: [],
      },
    ],
  })
);

// waittodo : 场景视频轮询

Mock.mock(
  '/mock-web/integrated-workbench/v1/scene/videopolling',
  'post',
  create200Response()
);
// waittodo- 公共安全-综合数据
Mock.mock(
  '/mock-web/integrated-workbench/v1/publicsafety/workstation/summarize',
  'post',
  create200Response({})
);
// waittodo: 巡查待办
Mock.mock(
  '/mock-web/integrated-workbench/v1/publicsafety/workstation/inspecttodo',
  'post',
  create200Response([{}])
);
// waittodo: 预警事件
Mock.mock(
  '/mock-web/integrated-workbench/v1/publicsafety/workstation/pealerttodo',
  'post',
  create200Response([{}])
);
// waittodo : 治理场景-设备列表
Mock.mock(
  '/mock-web/integrated-workbench/v1/governancescene/devicelist',
  'post',
  create200Response({
    cameraList: [
      {
        deviceId: '1889981491715379213',
        deviceName: '海滨路滨中道交口',
        cameraState: '在线',
        tagLable: '道路',
      },
      {
        deviceId: '1889981491715379219',
        deviceName: '千间菜市场右',
        cameraState: '在线',
        tagLable: '道路',
      },
      {
        deviceId: '1889981491715379221',
        deviceName: '海安里12栋',
        cameraState: '在线',
        tagLable: '道路',
      },
      {
        deviceId: '1889981491715379222',
        deviceName: '千间菜市场左',
        cameraState: '在线',
        tagLable: '道路',
      },
      {
        deviceId: '1889981491715379224',
        deviceName: '海安路滨中道交口',
        cameraState: '在线',
        tagLable: '道路',
      },
      {
        deviceId: '1889981491715379226',
        deviceName: '永进路华兴道交口',
        cameraState: '在线',
        tagLable: '道路',
      },
      {
        deviceId: '1889981491715379227',
        deviceName: '海滨道34号35号中间',
        cameraState: '在线',
        tagLable: '道路',
      },
      {
        deviceId: '1889981491715379223',
        deviceName: '海滨道35号',
        cameraState: '在线',
        tagLable: '道路',
      },
      {
        deviceId: '1889981491715379212',
        deviceName: '海宇道濒开路',
        cameraState: '在线',
        tagLable: '道路',
      },
      {
        deviceId: '1889981491715379235',
        deviceName: '海宇道临开西路左',
        cameraState: '在线',
        tagLable: '道路',
      },
      {
        deviceId: '1889981491715379209',
        deviceName: '海宇道港航路交口左',
        cameraState: '在线',
        tagLable: '道路',
      },
      {
        deviceId: '1889981491715379210',
        deviceName: '海宇道临开西路右',
        cameraState: '在线',
        tagLable: '道路',
      },
      {
        deviceId: '1889981491715379211',
        deviceName: '海宇道港航道交口右',
        cameraState: '在线',
        tagLable: '道路',
      },
    ],
  })
);
// waittodo: 治理场景-地图设备
Mock.mock(
  '/mock-web/integrated-workbench/v1/governancescene/mapdata',
  'post',
  create200Response({
    list: [
      {
        id: '29',
        lng: '117.7054812',
        lat: '39.00809625',
        devices: [
          {
            device_id: '1889981491715379235',
            device_name: '海宇道临开西路左',
            device_type: '1001',
            device_type_desc: '摄像头',
            lng: '117.7054812',
            lat: '39.00809625',
          },
          {
            device_id: '1889981491715379210',
            device_name: '海宇道临开西路右',
            device_type: '1001',
            device_type_desc: '摄像头',
            lng: '117.7054812',
            lat: '39.00809625',
          },
        ],
      },
      {
        id: '34',
        lng: '117.70625',
        lat: '39.00806',
        devices: [
          {
            device_id: '1889981491715379212',
            device_name: '海宇道频开路',
            device_type: '1001',
            device_type_desc: '摄像头',
            lng: '117.70625',
            lat: '39.00806',
          },
        ],
      },
      {
        id: '42',
        lng: '117.7068821',
        lat: '39.00793715',
        devices: [
          {
            device_id: '1889981491715379211',
            device_name: '海宇道港航道交口右',
            device_type: '1001',
            device_type_desc: '摄像头',
            lng: '117.7068821',
            lat: '39.00793715',
          },
          {
            device_id: '1889981491715379209',
            device_name: '海宇道港航路交口左',
            device_type: '1001',
            device_type_desc: '摄像头',
            lng: '117.7068821',
            lat: '39.00793715',
          },
        ],
      },
      {
        id: '114',
        lng: '117.71143',
        lat: '38.99678',
        devices: [
          {
            device_id: '1889981491715379226',
            device_name: '永进路华兴道交口',
            device_type: '1001',
            device_type_desc: '摄像头',
            lng: '117.71143',
            lat: '38.99678',
          },
        ],
      },
      {
        id: '118',
        lng: '117.7116984',
        lat: '38.99739604',
        devices: [
          {
            device_id: '1889981491715379222',
            device_name: '千间菜市场左',
            device_type: '1001',
            device_type_desc: '摄像头',
            lng: '117.7116984',
            lat: '38.99739604',
          },
          {
            device_id: '1889981491715379219',
            device_name: '千间菜市场右',
            device_type: '1001',
            device_type_desc: '摄像头',
            lng: '117.7116984',
            lat: '38.99739604',
          },
        ],
      },
      {
        id: '256',
        lng: '117.7224729',
        lat: '39.0004821',
        devices: [
          {
            device_id: '1889981491715379213',
            device_name: '海滨路滨中道交口',
            device_type: '1001',
            device_type_desc: '摄像头',
            lng: '117.7224729',
            lat: '39.0004821',
          },
        ],
      },
      {
        id: '263',
        lng: '117.72332',
        lat: '39.00016',
        devices: [
          {
            device_id: '1889981491715379227',
            device_name: '海滨道34号35号中间',
            device_type: '1001',
            device_type_desc: '摄像头',
            lng: '117.72332',
            lat: '39.00016',
          },
        ],
      },
      {
        id: '267',
        lng: '117.7236362',
        lat: '39.0000755',
        devices: [
          {
            device_id: '1889981491715379223',
            device_name: '海滨道35号',
            device_type: '1001',
            device_type_desc: '摄像头',
            lng: '117.7236362',
            lat: '39.0000755',
          },
          {
            device_id: '1889981491715379221',
            device_name: '海安里12栋',
            device_type: '1001',
            device_type_desc: '摄像头',
            lng: '117.7236362',
            lat: '39.0000755',
          },
        ],
      },
      {
        id: '283',
        lng: '117.7248036',
        lat: '38.99964914',
        devices: [
          {
            device_id: '1889981491715379224',
            device_name: '海安路滨中道交口',
            device_type: '1001',
            device_type_desc: '摄像头',
            lng: '117.7248036',
            lat: '38.99964914',
          },
        ],
      },
    ],
  })
);
// waittodo: 治理场景-事件列表
Mock.mock(
  '/mock-web/integrated-workbench/v1/governancescene/varityeventlist',
  'post',
  create200Response({
    busiEventList: [
      {
        eventId: '1906549671589974016',
        pic: 'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174338859381267195129?pic*1613183950*1399603*3684*AC01F06B0980F50E45D3-2*1743391334',
        description: '非法摆摊',
        deviceName: '海滨路滨中道交口',
        eventTime: '2025-03-31 11:30:38.0',
        eventCodeDesc: '非法摆摊',
      },
      {
        eventId: '1906547878629871616',
        pic: 'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174338859381267195129?pic*1358851866*674047*3098*AC01F06B0980F50E45D3-2*1743390907',
        description: '乱堆物堆料',
        deviceName: '永进路华兴道交口',
        eventTime: '2025-03-31 11:23:31.0',
        eventCodeDesc: '乱堆物堆料',
      },
      {
        eventId: '1906547866642550784',
        pic: 'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174338859381267195129?pic*1354877360*1291533*3092*AC01F06B0980F50E45D3-2*1743390904',
        description: '非法摆摊',
        deviceName: '海安路滨中道交口',
        eventTime: '2025-03-31 11:23:28.0',
        eventCodeDesc: '非法摆摊',
      },
      {
        eventId: '1906547431663865856',
        pic: 'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174338859381267195129?pic*1292490179*1381320*2946*AC01F06B0980F50E45D3-2*1743390800',
        description: '非法摆摊',
        deviceName: '海滨路滨中道交口',
        eventTime: '2025-03-31 11:21:44.0',
        eventCodeDesc: '非法摆摊',
      },
      {
        eventId: '1906544938619899904',
        pic: 'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174338859381267195129?pic*927868551*1271895*2133*AC01F06B0980F50E45D3-2*1743390206',
        description: '店外经营',
        deviceName: '海安路滨中道交口',
        eventTime: '2025-03-31 11:11:50.0',
        eventCodeDesc: '店外经营',
      },
      {
        eventId: '1906537002958983168',
        pic: 'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174338524643259695122?pic*1988473063*1273662*4564*AC01F06B0980F50E45D3-2*1743388314',
        description: '非法摆摊',
        deviceName: '海安路滨中道交口',
        eventTime: '2025-03-31 10:40:18.0',
        eventCodeDesc: '非法摆摊',
      },
      {
        eventId: '1906536549978345472',
        pic: 'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174338524643259695122?pic*1940426829*1247134*4461*AC01F06B0980F50E45D3-2*1743388206',
        description: '乱堆物堆料',
        deviceName: '海安路滨中道交口',
        eventTime: '2025-03-31 10:38:30.0',
        eventCodeDesc: '乱堆物堆料',
      },
      {
        eventId: '1906527473470935040',
        pic: 'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174338524643259695122?pic*538698886*1237673*1242*AC01F06B0980F50E45D3-2*1743386042',
        description: '店外经营',
        deviceName: '海安路滨中道交口',
        eventTime: '2025-03-31 10:02:26.0',
        eventCodeDesc: '店外经营',
      },
      {
        eventId: '1906526106790531072',
        pic: 'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174338524643259695122?pic*320519514*1226812*730*AC01F06B0980F50E45D3-2*1743385716',
        description: '乱堆物堆料',
        deviceName: '海安路滨中道交口',
        eventTime: '2025-03-31 09:57:00.0',
        eventCodeDesc: '乱堆物堆料',
      },
      {
        eventId: '1906525025394102272',
        pic: 'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174338524643259695122?pic*147391322*1390005*348*AC01F06B0980F50E45D3-2*1743385458',
        description: '占道经营',
        deviceName: '海滨路滨中道交口',
        eventTime: '2025-03-31 09:52:42.0',
        eventCodeDesc: '占道经营',
      },
      {
        eventId: '1906524900110241792',
        pic: 'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174338524643259695122?pic*119489397*1417088*283*AC01F06B0980F50E45D3-2*1743385428',
        description: '店外经营',
        deviceName: '海滨路滨中道交口',
        eventTime: '2025-03-31 09:52:12.0',
        eventCodeDesc: '店外经营',
      },
      {
        eventId: '1906519688792379392',
        pic: 'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174338158952378195119?pic*1389894497*1169132*3189*AC01F06B0980F50E45D3-2*1743384186',
        description: '店外经营',
        deviceName: '海安路滨中道交口',
        eventTime: '2025-03-31 09:31:30.0',
        eventCodeDesc: '店外经营',
      },
      {
        eventId: '1906516584965476352',
        pic: 'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174338158952378195119?pic*870745864*1182670*2014*AC01F06B0980F50E45D3-2*1743383446',
        description: '乱堆物堆料',
        deviceName: '海安路滨中道交口',
        eventTime: '2025-03-31 09:19:10.0',
        eventCodeDesc: '乱堆物堆料',
      },
      {
        eventId: '1906515697387835392',
        pic: 'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174338158952378195119?pic*743011706*1883040*1719*AC01F06B0980F50E45D3-2*1743383234',
        description: '非法摆摊',
        deviceName: '海安里12栋',
        eventTime: '2025-03-31 09:15:38.0',
        eventCodeDesc: '非法摆摊',
      },
      {
        eventId: '1906514144048320512',
        pic: 'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174338158952378195119?pic*574240150*1101159*1323*AC01F06B0980F50E45D3-2*1743382864',
        description: '乱堆物堆料',
        deviceName: '海安路滨中道交口',
        eventTime: '2025-03-31 09:09:28.0',
        eventCodeDesc: '乱堆物堆料',
      },
      {
        eventId: '1906510240929681408',
        pic: 'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174338158952378195119?pic*166593272*1838794*375*AC01F06B0980F50E45D3-2*1743381933',
        description: '占道经营',
        deviceName: '海宇道港航路交口左',
        eventTime: '2025-03-31 08:53:57.0',
        eventCodeDesc: '占道经营',
      },
      {
        eventId: '1906508750013992960',
        pic: 'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174337622306464595112?pic*2143679775*1151870*4702*AC01F06B0980F50E45D3-2*1743381578',
        description: '店外经营',
        deviceName: '海安路滨中道交口',
        eventTime: '2025-03-31 08:48:02.0',
        eventCodeDesc: '店外经营',
      },
      {
        eventId: '1906506191413055488',
        pic: 'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174337622306464595112?pic*1968502914*1148463*4315*AC01F06B0980F50E45D3-2*1743380968',
        description: '乱堆物堆料',
        deviceName: '海安路滨中道交口',
        eventTime: '2025-03-31 08:37:52.0',
        eventCodeDesc: '乱堆物堆料',
      },
      {
        eventId: '1906505931693363200',
        pic: 'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174337622306464595112?pic*1959131409*1155323*4301*AC01F06B0980F50E45D3-2*1743380906',
        description: '非法摆摊',
        deviceName: '海安路滨中道交口',
        eventTime: '2025-03-31 08:36:50.0',
        eventCodeDesc: '非法摆摊',
      },
      {
        eventId: '1906499550638641152',
        pic: 'https://20.13.0.125:82/pic?AC01F06B0980F50E45D3*hcs200cdb64493240499_2021/rongliangfugai/1522;174337622306464595112?pic*1589899475*596787*3537*AC01F06B0980F50E45D3-2*1743379384',
        description: '乱堆物堆料',
        deviceName: '和睦里4栋东北角',
        eventTime: '2025-03-31 08:11:29.0',
        eventCodeDesc: '乱堆物堆料',
      },
    ],
  })
);
// waittodo 事件趋势
Mock.mock(
  '/mock-web/integrated-workbench/v1/governancescene/varityeventtrend',
  'post',
  create200Response({
    eventTrendList: [
      {
        eventAmount: 76,
        xaxis: '03-28',
      },
      {
        eventAmount: 74,
        xaxis: '03-29',
      },
      {
        eventAmount: 96,
        xaxis: '03-30',
      },
      {
        eventAmount: 27,
        xaxis: '03-31',
      },
      {
        eventAmount: 0,
        xaxis: '04-01',
      },
      {
        eventAmount: 0,
        xaxis: '04-02',
      },
      {
        eventAmount: 0,
        xaxis: '04-03',
      },
    ],
  })
);
// waittodo 场景算法
Mock.mock(
  '/mock-web/integrated-workbench/v1/governancescene/algorithms',
  'post',
  create200Response({
    pic: 'http://111.33.84.118:9699/new-port-file/eventtest.png',
    title: '智能算法：城管监测',
    description:
      '通过智能识别技术，监测各路段违规事件，对非法占用道路、广场等公共场所进行买卖商品或服务的行为进行检测识别。',
  })
);
// waittodo
Mock.mock('/mock-web/', 'post', create200Response());
// waittodo
Mock.mock('/mock-web/', 'post', create200Response());
